<!--{template ADMIN_DIRECTORY/tpl/admin_header}-->
 <div class="page_title">
    	<h1>{$model_info['model_name']}{$_lang['manage']}</h1>
        <div class="tool">
        	<a href="index.php?do=$do&model_id=$model_id&view=list">{$_lang['task_list']}</a>
			{loop $ops $v}
				<a href="index.php?do=$do&model_id={$model_id}&view=edit&task_id={$task_id}&op={$v}" class="{if $op==$v}here{/if}">{$_lang['b_task_'.$v]}</a>
       		{/loop}
	    </div>
</div>
<!--页头结束-->
<div class="box post">
    <div class="tabcon">
        	<div class="title"><h2>{if $task_id}{$_lang['edit']}{else}{$_lang['add']}{/if}{$model_info['model_name']}{$_lang['task']}</h2></div>
            <div class="detail">
                <form method="post" action="index.php?do=$do&model_id={$model_id}&view=edit&task_id={$task_id}" id="frm_art_edit" name="frm_art_edit" enctype="multipart/form-data">
                <input type="hidden" name="task_id" value="$task_info[task_id]">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <th scope="row" width="130">{$_lang['task_title']}{$_lang['zh_mh']}</th>
                        <td>
	                         <input type="text" class="txt" name="task_title" value="$task_info[task_title]" size="80" id="task_title" msgArea="span_task_title"
							 limit="required:true;len:5-50" msg="{$_lang['task_title_msg']}" title="{$_lang['task_title_msg']}"><span id="span_task_title"></span>
							&nbsp;&nbsp;&nbsp;<input type="checkbox" name="recommend" {if $task_info[is_top]}checked{/if}><font color="red">{$_lang['if_recommend_task']}</font>
						<span>{$_lang['recommended_task_msg']}</span>
						</td>
                      </tr>
                      <tr>
                        <th scope="row">{$_lang['pub_name']}{$_lang['zh_mh']}</th>
                        <td><b>{$task_info[username]}</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<b>{$_lang['mobile']}：{$task_info['contact']}</b></td>
					  </tr>
					  <tr>
                        <th scope="row">{$_lang['show_time']}{$_lang['zh_mh']}</th>
                        <td><b>{$_lang['start_time']}:</b><!--{date('Y-m-d H:i:s',$task_info[start_time])}-->&nbsp;&nbsp;
							<b>{$_lang['contribution_end_time']}:</b><!--{date('Y-m-d H:i:s',$task_info[sub_time])}-->&nbsp;&nbsp;
							<b>{$_lang['choose_end_time']}:</b><!--{date('Y-m-d H:i:s',$task_info[end_time])}-->
						</td>
					  </tr>
                      <tr>
                        <th scope="row">{$_lang['task_status']}{$_lang['zh_mh']}</th>
                        <td>{$status_arr[$task_info[task_status]]}</td>
                      </tr>
                      <tr>
                        <th scope="row">{$_lang['industry']}{$_lang['zh_mh']}</th>
                        <td> <select name="slt_indus_id">
					        	<option value="0">{$_lang['top']}</option>
								{loop $indus_option_arr $v}
								 {$v}
								{/loop}
							</select>　
                        </td>
                      </tr>
					<tr>
                        <th scope="row">{$_lang['add_service']}{$_lang['zh_mh']}</th>
                        <td>
                        	<b>{$_lang['count']}:</b>{c:$task_info[att_cash]}<br>
							{loop $payitem_list $v}
								{if strpos($task_info[pay_item],$v[item_id])!==FALSE}
									　　　　<b>{$v['item_name']}</b>:<font color="red">{c:$v[item_cash]}</font><br>
								{/if}
							{/loop}
						</td>
                    </tr>

                     <tr>
                        <th scope="row">{$_lang['task_attachment']}{$_lang['zh_mh']}</th>
					    <td>
					    	{if $file_list}
					        	{loop $file_list $file}
					    			<a target="_blank" href="../../{$file[save_name]}">{$file[file_name]}</a>&nbsp;&nbsp;&nbsp;
					    		{/loop}
							{else}{$_lang['now_no_attachment']}{/if}
					   </td>
					</tr>
					<tr>
                        <th scope="row">{$_lang['task_cash']}{$_lang['zh_mh']}</th>
                        <td>
                        	<input type="text" name="task_cash" id="task_cash" value="{$task_info[task_cash]}" class="txt" limit="required:true;type:float;between:{$task_info[task_cash]}-"
							 msg="{$_lang['txt_task_cash_msg']}" title="{$_lang['txt_task_cash_msg']}" msgArea="span_task_cash"><span id="span_task_cash"></span>
						</td>
                    </tr>
					 <tr>
                        <th scope="row">{$_lang['task_description']}{$_lang['zh_mh']}</th>
                        <td>
                         <textarea  name="task_desc"  id="tar_content"   cols="70">{$task_info[task_desc]}</textarea>
						</td>
						 <script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/ueditor.config.js"></script>
					<!-- 编辑器源码文件 -->
					<script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/ueditor.all.min.js"></script>
					<script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/lang/zh-cn/zh-cn.js"></script>
					 <!-- 实例化编辑器 -->
				    <script type="text/javascript">
				        var ue = UE.getEditor('tar_content', {
				            //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个
				        	initialFrameWidth: '80%',
				        	initialFrameHeight: '400'
				        });
				    </script>
					</tr>
                    <tr>
                        <th scope="row">&nbsp;</th>
                    	<td>
                    	<button name="sbt_edit" value="1" class="positive primary  button" type="submit" onclick="return checkForm(document.getElementById('frm_art_edit'))">
                    		<span class="check icon"></span>{$_lang['submit']}</button>
							{loop $process_arr $k $v}
								<button type="submit" name="sbt_act" class="positive primary button"  value="{$k}" onclick="return confirm('{$_lang[confirm]}{$v}?')"><span class="lock icon"></span>{$v}</button>
							{/loop}

                    	</td>
                    </tr>
                    </table>
                </form>
              </div>
       </div>
</div>
<!--主体结束-->




<!--{template ADMIN_DIRECTORY/tpl/admin_footer}-->
